<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title>展示</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="<?php echo ADMIN_LAYUI_URL; ?>css/layui.css"  media="all">
    <style>
        .Pagination a:hover,.current{background-color: #f54281;border: 1px solid #f54281;color: #ffffff; }
        .Pagination{float: right;height: auto;_height: 45px; line-height: 20px;margin-right: 15px;_margin-right: 5px; color:#565656;margin-top: 10px;_margin-top: 20px; clear:both;}
        .Pagination a,.Pagination span{ font-size: 14px;text-decoration: none;display: block;float: left;color: #565656;border: 1px solid #ccc;height: 34px;line-height: 34px;margin: 0 2px;width: 34px;text-align: center;}
    </style>
</head>
<body>
<div style="margin: 5px;text-align:right;"><button class="layui-btn layui-btn-primary" onclick="window.location.href='__CONTROLLER__/add'">添加</button></div>
<table class="layui-table">
    <colgroup>
        <col width="150">
        <col width="150">
        <col width="200">
        <col>
    </colgroup>
    <thead>
    <tr>
        <th>用户名</th>
        <th>邮箱</th>
        <th>手机号</th>
        <!--<th>代码空间</th>-->
        <!--<th>权限id</th>-->
        <th>登录次数</th>
        <th>登录时间</th>
        <th colspan="2">操作</th>
    </tr>
    </thead>
    <tbody>
    <foreach name="infos" item="v" key="k" >
    <tr>
        <td>{$v.user_name}</td>
        <td>{$v.user_email}</td>
        <td>{$v.user_tel}</td>
        <!--<td>{$v.user_space}</td>-->
        <!--<td>{$v.user_role_id}</td>-->
        <td>{$v.user_time}</td>
        <td>{$v.last_time}</td>
        <td><button class="layui-btn" onclick="window.location.href='__CONTROLLER__/update/user_id/{$v.user_id}'">修改</button></td>
        <td><button class="layui-btn layui-btn-danger" onclick="window.location.href='__CONTROLLER__/del/user_id/{$v.user_id}'">删除</button></td>
    </tr>
    </foreach>
</table>

<div id="demo1">
    <div class="layui-box layui-laypage layui-laypage-default" id="layui-laypage-0">
        {$page}
    </div>
</div>

<script src="<?php echo ADMIN_LAYUI_URL; ?>layui.js" charset="utf-8"></script>

</body>
</html>

